package com.chess.core;

public class ChessBoard {
	ChessPiece[][] pieces = new ChessPiece[8][8];
	public void positionPiece(ChessPiece piece, Position position) {
		pieces[position.x][position.y] = piece;
	}
	public ChessPiece getPiece(Position position) {
		return pieces[position.x][position.y];
	}
	public void move(Position initPos, Position targetPos) {
		pieces[targetPos.x][targetPos.y] = getPiece(initPos);
		pieces[initPos.x][initPos.y] = null;
	}
}
